package oop1.Task;
import java.util.Scanner;
public class Task3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一个整数:");
        int n = input.nextInt();
        int k = 0;
        long a = 1;
        for (int i = 1; i <= n; i++)
            a *= 10;
        for (int j = 1; j < a; j++) {
            System.out.print(j + " ");
            k++;
            if (k % 20 == 0)
                System.out.println();

        }
    }
}
